package main;

import java.io.File;
import java.io.IOException;

import main.Tests.TestConcurrency;

public class Main {
    private static final String WALK_ON_DRIVE = "C:" + File.separator;
    private static final int NUM_OF_TESTS = 4;
    private static final int MAX_THREADS_PER_TEST = Runtime.getRuntime().availableProcessors();
    private static final String SEARCH_WITH_NO_REGISTRY = "";

    public static void main(String[] args) {

        try {
            final TestConcurrency test = new TestConcurrency(WALK_ON_DRIVE, NUM_OF_TESTS, MAX_THREADS_PER_TEST,
                    SEARCH_WITH_NO_REGISTRY);
            test.runTest();
//            final TestNoConcurrency test2 = new TestNoConcurrency(WALK_ON_DRIVE, NUM_OF_TESTS, MAX_THREADS_PER_TEST,
//                    SEARCH_WITH_NO_REGISTRY);
//            test2.runTest();
        } catch (IOException | InterruptedException e) {
            e.printStackTrace();
        }
    }
}
